<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<![endif]-->
<title>电影后台</title>
<!-- BOOTSTRAP CORE STYLE  -->
<link href="css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE  -->
<link href="css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE  -->
<link href="css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans'
	rel='stylesheet' type='text/css' />

</head>
<body>
	<div class="navbar navbar-inverse set-radius-zero">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".navbar-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="film_list.action"> <img
					src="img/logo.png" /> </a>

			</div>

			<div class="right-div">
				<s:if test="#session.userInfo != null">
	                欢迎你： <s:property value="#session.userInfo.uname" /> &nbsp;
       </s:if>
				<s:else>
					<s:a href="login.jsp" class="btn btn-danger pull-right">登录</s:a>
					<s:a href="register.jsp" class="btn btn-danger pull-right">注册</s:a>
				</s:else>
			</div>
		</div>
	</div>
	<!-- LOGO HEADER END-->
	<section class="menu-section">
		<div class="container">
			<div class="row ">
				<div class="col-md-12">
					<div class="navbar-collapse collapse ">
						<ul id="menu-top" class="nav navbar-nav navbar-right">
							<!-- <li><a href="User_index" class="menu-top-active">电影列表</a>
							</li>
							<li><a href="User_index">类别管理</a>
							</li> -->
							<!-- <li>
							<a href="#" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown">UI ELEMENTS <i class="fa fa-angle-down"></i></a>
							<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
								<li role="presentation"><a role="menuitem" tabindex="-1" href="ui.html">UI ELEMENTS</a></li>
								 <li role="presentation"><a role="menuitem" tabindex="-1" href="#">EXAMPLE LINK</a></li>
							</ul>
						</li> -->
							<li><a href="film_list.action">新闻管理模块</a></li>
							<li><a href="news_list.action">新闻管理模块</a></li>
							<li><a href="filmType_list.action">电影类型管理模块</a></li>
						</ul>
					</div>
				</div>

			</div>
		</div>
	</section>
	<!-- MENU SECTION END-->
	<div class="content-wrapper">
		<div class="container">
			<div class="row pad-botm">
				<div class="col-md-12">
					<div class="row">
						<!-- 描述：列表展示 -->
						<div class="col-md-12">
							<table border="1" align="center" width="80%" cellpadding="5"
								cellspacing="0">
								<tr>
									<th>序号</th>
									<th>类型名称</th>
									<th>操作</th>

								</tr>
								<s:if test="#request.listFilmType != null">
									<s:iterator var="type" value="#request.listFilmType"
										status="st">
										<tr>
											<td><s:property value="#st.count" /></td>
											<td><s:property value="#type.name" /></td>
											<td><s:a href="filmType_viewAdd">添加电影类型</s:a> <s:a
													href="filmType_viewUpdate?id=%{#type.id}">修改</s:a> <s:a
													href="filmType_delete?id=%{#type.id}">删除</s:a></td>
										</tr>
									</s:iterator>
								</s:if>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- CONTENT-WRAPPER SECTION END-->
	<section class="footer-section">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					Copyright &copy; 2017.Company name All rights reserved.<a
						target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
				</div>

			</div>
		</div>
	</section>
	<!-- FOOTER SECTION END-->
	<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME  -->
	<!-- CORE JQUERY  -->
	<script src="js/jquery-1.10.2.js"></script>
	<!-- BOOTSTRAP SCRIPTS  -->
	<script src="js/bootstrap.js"></script>
	<!-- CUSTOM SCRIPTS  -->
	<script src="js/custom.js"></script>

</body>
</html>
